$(function(){
    showCondition(true);
	
    paramTabPage[tabId]= $("#tabContent > .tab-pane.active").data();
    if(typeof(paramTabPage[tabId].previous)=="undefined"){
		$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].title);
	}else{
		if(paramTabPage[tabId].previous=="dep"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].depName+"指标");
		}else if(paramTabPage[tabId].previous=="ward"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].wardName+"指标");
		}else if(paramTabPage[tabId].monitorType=="mdc"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].mdcCode+"指标");
		}else if(paramTabPage[tabId].monitorType=="adrg"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].adrgCode+"指标");
		}else if(paramTabPage[tabId].monitorType=="drgs"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].drgCode+"指标");
		}
	}
	
	
	getQuotas("ybbDisLineClinic", loadData, "dislineclinicallhosp-ul");
	
	function loadData(totalQuota){
		// 全院指标 (1.Hosp 2.All)  参数 4.为jsp中的div的id 5.jsp中ul的id
		loadHospQuota(paramTabPage[tabId].monitorType,totalQuota,"dislineclinicallhospQuotasId","dislineclinicallhosp-ul","ybDisLineClinicTotal");
		// 加载指标的div 参数 2.为jsp中的div的id 3.jsp中ul的id
		loadYibaoDoctorDiv(totalQuota,"dislineclinicListQuotasId","dislineclinicList-ul");
		loadYibaoDoctorLayerData(totalQuota,true,"ybDisLineClinicDetail");
	}
});

